package com.frank.live.param;


/**
 * Audio param Entity
 * Created by frank on 2018/1/28.
 */

public class AudioParam {
    private int channelConfig;
    private int sampleRate;//采样率音频采样率是指录音设备在单位时间内对模拟信号采样的多少，采样频率越高，机械波的波形就越真实越自然
    //采样频率一般共分为11025Hz、22050Hz、24000Hz、44100Hz、48000Hz五个等级
    private int audioFormat;//audioFormat：音频数据的采样精度
    private int numChannels;//声道

    public AudioParam(int sampleRate, int channelConfig, int audioFormat, int numChannels) {
        this.sampleRate = sampleRate;
        this.channelConfig = channelConfig;
        this.audioFormat = audioFormat;
        this.numChannels = numChannels;
    }

//    public int getChannelConfig() {
//        return channelConfig;
//    }
//
//    public void setChannelConfig(int channelConfig) {
//        this.channelConfig = channelConfig;
//    }

    public int getSampleRate() {
        return sampleRate;
    }

    public void setSampleRate(int sampleRate) {
        this.sampleRate = sampleRate;
    }

    public int getAudioFormat() {
        return audioFormat;
    }

    public void setAudioFormat(int audioFormat) {
        this.audioFormat = audioFormat;
    }

    public int getNumChannels() {
        return numChannels;
    }

    public void setNumChannels(int numChannels) {
        this.numChannels = numChannels;
    }
}
